<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
		$('#chrcount').keyup(function(){
			var len = $('#chrcount').val();
			var char = len.length;	
			if(254-char == 0){
				}
			$('#chrcountlength').html(255-char);	
		});
	});
	
	$(document).ready(function(){
		$('#chrcount2').keyup(function(){
			var len = $('#chrcount2').val();
			var char = len.length;	
			if(254-char == 0){
				}
			$('#chrcountlength2').html(255-char);	
		});
	});
</script>
<div id="mws-container" class="clearfix">
<div class="container">
<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span class="mws-i-24 i-list">Add Country </span>
                    </div>
                    <div class="mws-panel-body">
                    
                    		<div class="mws-form-inline">
					
				  <?php echo $form->create(array('controller'=>'setups','action'=>'admin_addlocations','method'=>'post','class' => 'mws-form')); ?>
                    		
                    			<div class="mws-form-row">
                    				<label>* Country :</label>
                    				<div class="mws-form-item large">
                    		<?php echo $this->Form->input('Location.country', array('type' => 'text','value'=>'','class'=>'mws-textinput','label' =>false));?> 
                    				</div>
                    			</div>
                    			
                                <div class="mws-form-row">
                    				<label>Country - Abbreviation : </label>
                    				<div class="mws-form-item large">
                  <?php echo $this->Form->input('Location.countryAbbreviation', array('type' => 'text','value'=>'','class'=>'mws-textinput','label' =>false));?> 
                    				</div>
                    			</div>
                                <div class="mws-form-row">
                    				<label>Featured : </label>
                    				<div class="mws-form-item large">
                  <?php echo $this->Form->input('Location.featured', array('type'=>'checkbox','value'=>'1','label' =>false));?> 
                    				</div>
                    			</div>
                                <div class="mws-form-row">
                    				<label>* Friendly Title : </label>
                    				<div class="mws-form-item large">
                  <?php echo $this->Form->input('Location.seoFriendlytitle', array('type' => 'text','value'=>'','class'=>'mws-textinput','label' =>false));?> 
                    				</div>
                    			</div>
                                
                                  <div class="mws-form-row">
                    				<label>Meta Description :  </label>
                    				<div class="mws-form-item large">
                <?php echo $this->Form->input('Location.metaDescription', array('type' => 'textarea','value'=>'','id'=>'chrcount','maxlength'=>'255','class'=>'','label' =>false));?> 
                    				</div>
                    			</div>
                                 <div class="mws-form-row">
                    				<label><p id="chrcountlength"></p></label>
                    			</div>
                    			<div class="mws-form-row">
                    				<label>Meta Keywords :</label>
                    				<div class="mws-form-item large">
                	<?php echo $this->Form->input('Location.keywords', array('type' => 'textarea','value'=>'','class'=>'','label' =>false));?> 
                    				</div>
                    			</div>

                    			 <div class="mws-form-row">
                    				<label><p id="chrcountlength2"></p></label>
                    			</div>
                    		<div class="mws-button-row">
                    
                    			<input type="submit" class="mws-button black" value="Submit">
                    	
                    		</div>
                    	</form>
                    </div>    	
                </div>
					</div>
				</div>